package org.styx.seata.tcc.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.styx.seata.tcc.order.domain.Order;

/**
 * @date 2021/8/9
 * @auther uranus
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 创建订单
     * @param order
     */
    /*void create(Order order);*/

    /**
     * 修改订单状态
     * @param userId
     * @param status
     */
    void update(@Param("userId")Long userId,@Param("status")Integer status);
}
